/*
 * @FileName: [TaskJob.java]
 * 
 * @Package com.bcinfo.iccard.admin.iccard.controller
 * 
 * 
 * Copyright (c) 2011-2015 BCINFO Technology Limited Com.
 * All rights reserved.
 * 
 * This software is the confidential and proprietary
 * information of BCINFO Technology Limited Company
 * ("Confidential Information"). You shall not disclose
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement
 * you entered into with RKY.
 * 
 * $Rev$
 * $LastChangedDate$
 * $LastChangedBy$
 * 
 * @category ICCARD
 * 
 * @version 1.1
 * 
 * @author $Author$
 * 
 * Change History:[Formatter: author date description] <br/>
 * 1
 * 2
 * 3
 */

package com.bcinfo.iccard.admin.iccard.controller;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.bcinfo.iccard.admin.common.Constants;
import com.bcinfo.iccard.admin.util.ExcelUtil;

/**
 * 定时任务 <br/>
 * <p>
 * Description:<br/>
 * <p>
 * 清理临时文件夹
 * 
 * <p>
 * For Examples <br/>
 * 
 * <PRE>
 *      TODO 代码使用示例
 * </PRE>
 * <p>
 */
@Component("taskJob")
public class TaskJob
{
    @Scheduled(cron = "10 */1 * * * ?")
    public void job1()
    {
        String path = Constants.CONTEXT_REAL_PATH + "/iccard/report/temp/";
        System.out.println("clean temp file in:" + path);
        ExcelUtil.cleanTempFile(path);
    }
}
